<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: peikunkun
  Date: 2017/12/20 0020
  Time: 下午 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<h1>其他页面的跳转</h1>
<a href=<%=contextPath%>"pages/entityDate/loadEntityDate.jsp">跳转到日期测试页面</a></body>
<br/>
<a href=<%=contextPath%>"pages/fileupload/upload.jsp">跳转到文件上传测试页面</a><br>
<a href=<%=contextPath%>"pages/fileupload/download.jsp">跳转到文件下载测试页面</a><br>
<a href=<%=contextPath%>"pages/fileupload/download.jsp">跳转到文件下载测试页面</a><br/>
<a href=<%=contextPath%>"pages/fileupload/uploadRegister.jsp">跳转到用户注册测试页面</a><br/>


<h1>测试模型数据（Model和ModelMap）</h1>
<form action=<%=contextPath%>"modelAttribute/login.action" method="post">
    姓名：<input name="username" type="text"><br>
    密码：<input name="password" type="password"><br>
    <input type="submit" value="提交">
</form>
<h1>测试模型数据视图（ModelAndView）</h1>
<form action=<%=contextPath%>"modelAttribute/login1.action" method="post">
    姓名：<input name="username" type="text"><br>
    密码：<input name="password" type="password"><br>
    <input type="submit" value="提交">
</form>
<h1>测试参数绑定（@RequestParam）</h1>
<form action=<%=contextPath%>"modelAttribute/login2.action" method="post">
    姓名：<input name="username" type="text"><br>
    密码：<input name="password" type="password"><br>
    <input type="submit" value="提交">
</form>
<h1>测试动态参数绑定（@PathVariable）</h1>
<form action=<%=contextPath%>"modelAttribute/pathVariableTest/1" method="post">
    <input type="submit" value="提交">
</form>
<h1>测试请求头信息数据绑定（@RequestHeader）</h1>
<form action=<%=contextPath%>"modelAttribute/requestHeaderTest.action" method="post">
    姓名：<input name="username" type="text"><br>
    <input type="submit" value="提交">
</form>
<h1>测试从CookieValue数据绑定（@CookieValue）</h1>
<form action=<%=contextPath%>"modelAttribute/cookieValueTest.action" method="post">
    姓名：<input name="username" type="text"><br>
    <input type="submit" value="提交">
</form>
<h1>将Model数据添加到作用于类上的@SessionAttributes的session中（@SessionAttributes）</h1>
<form action=<%=contextPath%>"modelAttribute/sessionAttributesTest.action" method="post">
    用户姓名：<input name="username" type="text"><br>
    部门姓名：<input name="deptname" type="text"><br>
    <input type="submit" value="提交">
</form>
<h1>ModelAttribute和RequestMapping同时作用于同一方法（@ModelAttribute与@RequestParam）</h1>
<form action=<%=contextPath%>"modelAttribute/modelAttribute7.action" method="post">
    姓名：<input name="username" type="text"><br>
    <input type="submit" value="提交">
</form>

</body>
</html>
